#ifndef SysTime_H
#define SysTime_H

#ifdef SysTime_Variable
#define SysTime_Extern

static U8 Timer5msCount = 0;
static U8 Timer10msCount = 0;
static U8 Timer100msCount = 0;
static U8 Timer1sCount = 0;
static U8 Timer1sQTCount = 0;

static U8 PowerOnSec;

#else
#define SysTime_Extern extern
#endif

SysTime_Extern U8 CompOffSec;
SysTime_Extern U8 CompOnSumMin;
SysTime_Extern U8 CompOffSumMin;

SysTime_Extern U8 PowerOnMin;

SysTime_Extern U8 CallDispSec;
SysTime_Extern U8 CallDispMin;

SysTime_Extern U8 ForceDefSec;

SysTime_Extern U8 CompOnSumSec;
SysTime_Extern U8 CompOffSumSec;
SysTime_Extern U8 CtrlEndTime;

SysTime_Extern U8 DefEndSec;
SysTime_Extern U8 DefEndMin;

extern U16     MotorErr ;



void DcMotorTimeCount( void );
void SysTime0P5ms(void);
void SysTime5ms(void);
void SysTime10ms(void);
void SysTime100ms(void);
void SysTime1s(void);
void SysTime1sQT(void);

void CompTime(void);
void DefEndTime(void);
void CallDispTime(void);
#endif
